
<?php
//更新数据
require_once "../data.php";

  $sql="update student set name='$_POST[name]',sex='$_POST[sex]' where id=$_POST[id]";

  $sql=convert2gbk($sql);

  if (!mssql_query($sql,$sqlcon))
  {
	  die('Could not connect: ' . mssql_error());
  }
echo "1 record updated";

header("Location: read.php"); 
?> 


